package com.ruoyi.signups.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.signups.mapper.ActivitySignupsMapper;
import com.ruoyi.signups.domain.ActivitySignups;
import com.ruoyi.signups.service.IActivitySignupsService;

/**
 * 活动报名Service业务层处理
 * 
 * @author anyunyi
 * @date 2025-05-29
 */
@Service
public class ActivitySignupsServiceImpl implements IActivitySignupsService 
{
    @Autowired
    private ActivitySignupsMapper activitySignupsMapper;

    /**
     * 查询活动报名
     * 
     * @param id 活动报名主键
     * @return 活动报名
     */
    @Override
    public ActivitySignups selectActivitySignupsById(Long id)
    {
        return activitySignupsMapper.selectActivitySignupsById(id);
    }

    /**
     * 查询活动报名列表
     * 
     * @param activitySignups 活动报名
     * @return 活动报名
     */
    @Override
    public List<ActivitySignups> selectActivitySignupsList(ActivitySignups activitySignups)
    {
        return activitySignupsMapper.selectActivitySignupsList(activitySignups);
    }

    /**
     * 新增活动报名
     * 
     * @param activitySignups 活动报名
     * @return 结果
     */
    @Override
    public int insertActivitySignups(ActivitySignups activitySignups)
    {
        return activitySignupsMapper.insertActivitySignups(activitySignups);
    }

    /**
     * 修改活动报名
     * 
     * @param activitySignups 活动报名
     * @return 结果
     */
    @Override
    public int updateActivitySignups(ActivitySignups activitySignups)
    {
        return activitySignupsMapper.updateActivitySignups(activitySignups);
    }

    /**
     * 批量删除活动报名
     * 
     * @param ids 需要删除的活动报名主键
     * @return 结果
     */
    @Override
    public int deleteActivitySignupsByIds(Long[] ids)
    {
        return activitySignupsMapper.deleteActivitySignupsByIds(ids);
    }

    /**
     * 删除活动报名信息
     * 
     * @param id 活动报名主键
     * @return 结果
     */
    @Override
    public int deleteActivitySignupsById(Long id)
    {
        return activitySignupsMapper.deleteActivitySignupsById(id);
    }
}
